<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>My html</title>
</head>
<body>
	Hi,{{ name }}.<h2>This is my html !</h2>

	{% if marks>50 %}
	<h1> 通过考试！</h1>
	{% else %}
	<h1>未通过考试！</h1>
	{% endif %}

	<table border = 1>
		{% for key, value in result.items() %}
		<tr>
		   <th> {{ key }} </th>
		   <td> {{ value }} </td>
		</tr>
		{% endfor %}
	</table>

	<h2>{{ user.username }}</h2>
	bio: 
	{% if user.bio %}
	    <i>{{ user.bio }}</i>
	{% else %}
	    <i>This user has not provided a bio.</i>
	{% endif %}

	{# Below is the movie list (this is comment) #}
	<h5>{{ user.username }}'s Watchlist ({{ movies|length }}):</h5>
	<ul>
	    {% for movie in movies %}
	    <li>{{ movie.name }} - {{ movie.year }}</li>
	    {% endfor %}
	</ul>

</body>
</html>